package com.platform.modules.quality.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.platform.entity.Attachment;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;


@Data
@TableName("QLY_INSPECTION_ITEM")
@ApiModel("质量巡查")
public class QlyInspectionItemEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId
    private String insItemId;
    
    @ApiModelProperty("检查区域")
    private String workAreaId;

    @ApiModelProperty("检查部位")
    private String position;
    
    @ApiModelProperty("问题类型")
    private String queType;
    
    @ApiModelProperty("问题级别")
    private String queLevel;

    @ApiModelProperty("问题描述")
    private String queDesc;    
    
    @ApiModelProperty("整改要求")
    private String zgyq;
    
    @ApiModelProperty("质量巡查记录ID")
    private String insId;
    
    
    /*其他业务字段*/
    @TableField(exist = false)
    private String areaName;
    @TableField(exist = false)
    private String inspectionUserName;
    @TableField(exist = false)
    private String workAreaResponsibleUserName;
    @TableField(exist = false)
    private String createTime;
    
    /*整改记录表*/
    @TableField(exist = false)
    private String insItemReformId;
    @TableField(exist = false)
    private String reformDesc;
    @TableField(exist = false)
    private String reformTime;

    /*问题图片列表*/
    @TableField(exist = false)
    private List<Attachment> insAtts;
    
    /*整改图片列表*/
    @TableField(exist = false)
    private List<Attachment> refAtts;
    
}
